/**
 * Meituan.com Inc.
 * Copyright (c) 2010-2018 All Rights Reserved.
 */

import lombok.*;
import lombok.experimental.var;
import lombok.extern.java.Log;

import java.util.ArrayList;

/**
 * <p></p>
 *
 * @author tuyou@meituan.com
 * @version v0.1 2018-11-25 1:25 PM tuyou Exp $$
 */
//@Getter
//@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString(exclude = "age")
@EqualsAndHashCode
@Data
@Log
public class Person {

    @NonNull
    private String name;

    private int age;

    public static void main(String[] args) {

        Person person = new Person();
        person.setName("tuyou");
        person.setAge(25);

        log.info(person.getName());
        log.info(String.valueOf(person.getAge()));

        person = new Person("涂有", 27);
//        person.setName(null);
        log.info(person.toString());
    }
}